﻿using Abp.Dependency;
using DHJ.Cost.MessageHandle;
using DHJ.Messages.Production;
using NServiceBus;

namespace DHJ.Cost.Tasks
{
    public class TaskAcceptedHandler : IHandleMessages<TaskAccepted>
    {
        public async System.Threading.Tasks.Task Handle(TaskAccepted message, IMessageHandlerContext context)
        {
            var handler = IocManager.Instance.Resolve<MessageHandleAppService>();
            await handler.HandleTaskAccepted(message);
        }
    }
}